FROM openjdk:8-jre-alpine3.9
MAINTAINER liuchuang@csc-sz.cn

COPY ffn-manufacturing-toolkit /usr/bin/
# 替换官方软件源为阿里的
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    chmod u+x /usr/bin/ffn-manufacturing-toolkit && \
    apk update && apk add git && \
    apk add --no-cache vim openssl openssh openssl-dev bash curl libevent &&\
    apk add -U tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&  apk del tzdata

CMD ["/bin/sh"]